package com.zhou.array

import Array._

/*
 * @Description: 区间数组
 * @Author: ZhOu 
 * @Date: 2018/6/12
 */
object RangeArray {


  def main(args: Array[String]): Unit = {
    var list1 = range(10, 20)
    var list2 = range(10, 20, 2)

    for (x <- list1) {
      print(x + "\t")
    }

    println()

    for (x <- list2) {
      print(x + "\t")
    }
  }
}
